package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import view.InputArea;

public class PlayButtonListener implements ActionListener{
    private static Controller controller;
    private InputArea myInputArea;
    
    public PlayButtonListener(InputArea ia)
    {
        myInputArea = ia;
    }

	@Override
	public void actionPerformed(ActionEvent e) {
		String userInput = myInputArea.simplifyText();
		controller.getModel().processInput(userInput);
	}

    public static void setController (Controller c)
    {
        controller = c;
    }

}

